package com.io.example.demoparent.thread;

import java.util.concurrent.CompletableFuture;

/**
 * @program: demo-project
 * @ClassName AskThread
 * @description:
 * @author: 宠儿
 * @create: 2024−09-08 18:07
 * @Version 1.0
 **/
public class AskThread implements Runnable {

    private CompletableFuture<Integer> re = null;

    @Override
    public void run() {
        int myRe = 0;
        try {
            myRe = re.get() * re.get();
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println(myRe);
    }
}
